import { Tools } from 'weaver-mobile';

const { callApi } = Tools;

export const attachmentCondition = '/api/email/attachment/condition';
export const attachmentList = '/api/email/attachment/list';

//调用附件转换
export const convertFile = '/api/doc/acc/convertFileForMobile';

export const configUrl = '/api/email/base/getEmailAllConfig';

export default {
  attachmentList: params => callApi({ url: attachmentList, method: 'GET', params }),
  convertFile: params => Tools.callApi({url: convertFile, method: 'GET', params}), 
  configUrl: params => Tools.callApi({url: configUrl, method: 'GET', params}), 
}
